<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<style type="text/css">
	body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
	#allmap {height: 100%;width:100%;overflow: hidden;}
	dl,dt,dd,ul,li{
		margin:0;
		padding:0;
		list-style:none;
	}
	dt{
		font-size:14px;
		font-family:"微软雅黑";
		font-weight:bold;
		border-bottom:1px dotted #000;
		padding:5px 0 5px 5px;
		margin:5px 0;
	}
	dd{
		padding:5px 0 0 5px;
	}
	li{
		line-height:28px;
	}
	</style>
	<script type="text/javascript" src="http://api.map.baidu.com/api?type=quick&ak=0871ef44034a29be8dc5f785d4c0631c&v=1.0"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=oCeOUCLdlxAfznd7RX1E35s5"></script>
	<script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
	<link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
	<title>崇文金城</title>
</head>
<body>
	<div id="allmap">	
	</div>
<script type="text/javascript">
var curCity = "025";
var nowsite = "fang";
var city = "nanjing";
var cityx=118.71316528320312500000;
var cityy=31.97737884521484375000;
var mapsize=13;
var imgPath = "http://imgs.soufun.com/house/2014_10/30/nanjing/1414634534327_000.jpg";
var housetitle = "五矿崇文金城";
var zhoubiantag = "";
var searchcondition=[]; 
searchcondition['newcode'] = "1811079604";
searchcondition['cityname'] = "南京";
var housepoint = [{'city':'南京','newCode':'1811079604','title':'五矿崇文金城','tel':'400-890-0000 转 688102','startTime':'预计11月份加推7、17号楼','price_type':'均价','price_num':'23500','priceDate':'2014-10-27 00:00:00','price_unit':'元/平方米','purpose':'住宅','saling':'1','picAddress':'http://img.soufun.com/house/2014_04/09/nanjing/1397027055021_000.jpg','bbs':'http://chongwenjinchengwk.fang.com/bbs/','address':'区天河路南外河西分校旁（天河路与恒河路交汇处）','district':'建邺','comarea':'河西','maplogo':'','lng':'118.71316528320312500000','lat':'31.97737884521484375000','jiucuoUrl':'http://nanjing.fang.com/house/web/ditujiucuo.php?newcode=1811079604&city=%C4%CF%BE%A9','houseurl':'http://chongwenjinchengwk.fang.com/','mobilepayment':'','city_gbk':'%C4%CF%BE%A9','district_gbk':'%BD%A8%DA%FE','comarea_gbk':'%BA%D3%CE%F7'}];
	// 百度地图API功能
    var map = new BMap.Map('allmap');
    var poi = new BMap.Point(cityx,cityy);
    map.centerAndZoom(poi, 16);
    map.enableScrollWheelZoom();

    var content = '<div style="margin:0;line-height:20px;padding:2px;">' +
                    '<img src="' + imgPath +'" alt="" style="float:right;zoom:1;overflow:hidden;width:100px;height:100px;margin-left:3px;"/>' +
                    '地址：区天河路南外河西分校旁（天河路与恒河路交汇处）<br/>电话：400-890-0000 转 688102<br/>简介：预计11月份加推7、17号楼' +
                  '</div>';

    //创建检索信息窗口对象
    var searchInfoWindow = null;
	searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title  : "五矿崇文金城",      //标题
			width  : 290,             //宽度
			height : 105,              //高度
			panel  : "panel",         //检索结果面板
			enableAutoPan : true,     //自动平移
			searchTypes   :[
				BMAPLIB_TAB_SEARCH,   //周边检索
				BMAPLIB_TAB_TO_HERE,  //到这里去
				BMAPLIB_TAB_FROM_HERE //从这里出发
			]
		});
    var marker = new BMap.Marker(poi); //创建marker对象
    marker.addEventListener("click", function(e){
	    searchInfoWindow.open(marker);
    })
    map.addOverlay(marker); //在地图中添加marker
</script>
</body>
</html>

